package biz.impl;

import biz.UserBiz;
import dao.UserDao;
import dao.impl.UserDaoImpl;
import entity.User;

public class UserBizImpl implements UserBiz {
	private UserDao userDao = new UserDaoImpl();

	public User findUser(String userName) {
		return userDao.findUser(userName);
	}

	public User findUser(int userId) {
		return userDao.findUser(userId);
	}

	public int addUser(User user) {
		return userDao.addUser(user);
	}

	public int updateUser(User user) throws Exception {
		return userDao.updateUser(user);
	}
}
